package com.it.Service.impl;

import com.it.Mapper.LoginMapper;
import com.it.Service.LoginService;
import com.it.pojo.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class LoginServiceImpl implements LoginService {
    @Autowired
    private LoginMapper loginMapper;

    @Override
    public User login(User user) {
        return loginMapper.login(user);
    }

    @Override
    public void updateUser(User user) {
        loginMapper.updateUser(user);
    }
}
